package Game01;

import javax.swing.*;
import java.awt.*;

public class GameTest01 {
    public static void main(String[] args) {
        GameJPane01 j=new GameJPane01("Game");
        Toolkit toolkit=Toolkit.getDefaultToolkit();
        Dimension screenSize=toolkit.getScreenSize();
        int width= screenSize.width;
        int height= screenSize.height;
        j.setBounds(width/2,height/2,500,300);
        j.setVisible(true);
        j.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        JTextField t1=new JTextField();
        JButton b1=new JButton("添加一个新的对象");
        b1.setBounds(0,50,100,50);
        j.add(b1);



        b1.addActionListener((e)->{

        });
    }

}
